<template>
  <div class="block">
    <el-pagination
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :current-page="currentPage"
      :page-sizes="[5, 10, 15, 20]"
      :page-size="pageSize"
      layout="total, sizes, prev, pager, next, jumper"
      :total="totalsize"
    >
    </el-pagination>
  </div>
</template>
<script>
export default {
  props: ['totalsize', 'currentPage', 'pageSize'],
  methods: {
    handleSizeChange(val) {
      this.$emit("changeSize", val)
    },
    handleCurrentChange(val) {
      this.$emit("changeCurrentPage", val)
    }
  },
  data() {
    return {
    };
  }
}
</script>